package com.example.mapper.appointment;

import com.example.model.entity.appointment.Plan;
import com.example.model.vo.PlanVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 操作Plan相关数据接口
*/
public interface PlanMapper {

    /**
      * 新增
    */
    int insert(Plan Plan);

    /**
      * 删除
    */
    int deleteById(Integer id);

    /**
      * 修改
    */
    int updateById(Plan Plan);

    /**
      * 根据ID查询
    */
    Plan selectById(Integer id);

    /**
      * 查询所有
    */
    List<PlanVO> selectAll(Plan Plan);
    @Select("select * from plan where doctorID=#{doctorID} and week = #{week} and time=#{time}")
    Plan selectByTime(Integer doctorID,String week,String time);

    List<Plan> selectByDoctorId(Integer id);
}
